package org.pageley.games.sanctuary.domain.scenario;

import java.util.Collection;
import java.util.HashSet;

import org.pageley.games.sanctuary.domain.entity.Entity;
import org.pageley.games.sanctuary.domain.environment.Environment;


public class Scenario {
	private Collection<Entity> entities;
	private Environment environment;

	public void setEntities(Collection<Entity> entities) {
		this.entities = new HashSet<Entity>(entities);
	}

	public void setEnvironment(Environment environment) {
		this.environment = environment;
	}

	public void initialize() {
		for(Entity entity : this.entities) {
			this.environment.addEntity(entity);
		}
	}
}
